<?php
	
	require("includes/connection.php");
	session_start();
	$id = $_SESSION['id'];
	$query = "Update user_table set online = 'false' where userId = $id";
	$logout = mysql_query($query);
	session_destroy();
	header('Location:index.php');
?>